how to determine the general solution